package com.sneakxy.cloudbase.platform.bean;

import org.springframework.data.annotation.Id;

import com.sneakxy.mybatis.commons.annotations.Column;
import com.sneakxy.mybatis.commons.annotations.Table;
import com.sneakxy.mybatis.commons.orm.generation.GeneratedValue;
import com.sneakxy.mybatis.commons.orm.generation.GenerationType;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 数据字典信息
 * @author 潜行的虚影
 * @see
 */
@Data
@Table("t_mb4j_dict")
@EqualsAndHashCode(callSuper = false)
public class Dict extends BaseEntity<String> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6906788611283584301L;

	/**
	 * 字典ID
	 */
	@Id
	@Column("id")
	@GeneratedValue(strategy = GenerationType.UUID)
	private String id;

	/**
	 * 字典标签
	 */
	@Column("label")
	private String label;

	/**
	 * 备注
	 */
	@Column("memo")
	private String memo;

	/**
	 * 上级ID
	 */
	@Column("parent_id")
	private String parentId;

	/**
	 * 排序
	 */
	@Column("sort")
	private Integer sort;

	/**
	 * 字典值
	 */
	@Column("value")
	private String value;

	/**
	 * 字典ID
	 */
	@Column("dict_id")
	private String dictId;

	/**
	 * 层级
	 */
	@Column("level")
	private Integer level;

}
